package org.snail.spring.boot.autoconfigure;

/**
 * @author MR.LHL
 * @date 2021/4/28
 */
public class SnailService {

    private SnailProperties snailProperties;

    public SnailProperties getSnailProperties() {
        return snailProperties;
    }

    public void setSnailProperties(SnailProperties snailProperties) {
        this.snailProperties = snailProperties;
    }

    public SnailService(SnailProperties snailProperties) {
        this.snailProperties = snailProperties;
    }

    public String  getMessage(){
        return "name:" + snailProperties.getName() + ",age:" + snailProperties.getAge();
    }
}
